const routes: any = [
    {
        path: '/impower',
        name: 'impower',
        component: "/impower",
    },
    {
        path: '/impower/config',
        name: 'config',
        component: "/config",
        hideInMenu: true
    },
    {
        path: '/overview',
        name: 'overview',
        component: "/overview",
    }
]

const tencent = routes.map((route: any) => {
    route.path = `/tencent${route.path}`;
    route.component = `./tencent${route.component}`;
    return route;
}, {});

export default [
    {
        name: "tencent",
        path: "/tencent",
        icon: "smile",
        routes: [
            ...tencent,
            {
                component: "./404"
            }
        ]
    },
];
